From: Ivan Molodetskikh Date: Mon, 31 Jan 2022 08:49:40 +0000 (+0300) Subject: screenshot: Remove _dragDevice X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~157 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0d1f6b0eb9a39882e441de793a68bf1e9064560e;p=gnome-shell.git screenshot: Remove _dragDevice It went unused since https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/21cc534add54761bf19fe402ddb71af72bdc922c Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index c0e0cfd44..5c338120e 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -236,7 +236,6 @@ var UIAreaSelector = GObject.registerClass({ // Clutter.BUTTON_SECONDARY or the string "touch" to identify the source // of the drag operation. this._dragButton = 0; - this._dragDevice = null; this._dragSequence = null; this._areaIndicator = new UIAreaIndicator(); @@ -384,7 +383,6 @@ var UIAreaSelector = GObject.registerClass({ } this._dragButton = 0; - this._dragDevice = null; this._dragSequence = null; if (this._dragCursor === Meta.Cursor.CROSSHAIR && @@ -497,10 +495,7 @@ var UIAreaSelector = GObject.registerClass({ } if (this._dragButton) { - const device = event.device; - this._dragGrab = global.stage.grab(this); - this._dragDevice = device; this._dragSequence = sequence; this.emit('drag-started');